<template>
   <swiper class="detail-swiper" v-if="topImages.length">
      <swiper-item class="item" v-for="(item) in topImages" :key="item.index">
        <img :src="item" alt="">
      </swiper-item>
    </swiper>
</template>
<script>
import {Swiper,SwiperItem} from 'components/common/swiper'

export default {
  name: 'DetailSwiper',
  components: {
    Swiper,
    SwiperItem
  },

  props: {
    topImages: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>
<style scoped>
  .item {
    height: 230px;
    overflow: hidden;
  }
</style>